package team.bjbls.mrboot.resul;

public class ResponseData {
    private  String eCode;
    private  String errorInfo;
    private  Object data;



    public ResponseData(String eCode, String errorInfo, Object data) {
        this.eCode = eCode;
        this.errorInfo = errorInfo;
        this.data = data;
    }
    public ResponseData(ResultCode resultCode, Object data) {
        this.eCode = resultCode.geteCode();
        this.errorInfo = resultCode.getErrorInfo();
        this.data = data;
    }
    public ResponseData(ResultCode resultCode) {
        this.eCode = resultCode.geteCode();
        this.errorInfo = resultCode.getErrorInfo();

    }
    public ResponseData(String eCode, String errorInfo) {
        this.eCode = eCode;
        this.errorInfo = errorInfo;

    }
}
